package custom_types;

import javax.persistence.Column;
import javax.persistence.Embeddable;

@Embeddable
public class Property {
//	private int id;
//	private Address address;
	@Column
	private int noOfRooms;
	@Column
	private int constructionYear;
	@Column
	private int value;
	@Column
	private int areaSize;
	
	//Getters
//	public int getId() { return id; }
//	public Address getAddress() { return address; }
	public int getNoOfRooms() { return noOfRooms; }
	public int getConstructionYear() { return constructionYear; }
	public int getValue() { return value; }
	public int getAreaSize() { return areaSize; }

	//Setters	
//	public void setId(int id) { this.id = id; }
//	public void setAddress(Address address) { this.address = address; }
	public void setNoOfRooms(int noOfRooms) { this.noOfRooms = noOfRooms; }
	public void setConstructionYear(int constructionYear) { this.constructionYear = constructionYear; }
	public void setValue(int value) { this.value = value; }
	public void setAreaSize(int areaSize) { this.areaSize = areaSize; }
	
	
	//Constructor
	public Property(int noOfRooms, int constructionYear, int value, int areaSize) {
		super();
//		this.id = id;
//		this.address = address;
		this.noOfRooms = noOfRooms;
		this.constructionYear = constructionYear;
		this.value = value;
		this.areaSize = areaSize;
	}
	public Property() {
		super();
	}
	
	
	
}
